import request from '@/utils/http'

// 小程序认证
export const miniLogin = (params: any) => {
  return request.get({
    url: '/api/user/mini/login/' + params
    // data: params
  })
}
// 发送验证码
export const sendPhoneCode = (params: any) => {
  return request.post({
    url: '/api/user/sendPhoneCode',
    data: params
  })
}
// 手机号登录注册
export const phoneLogin = (params: any) => {
  return request.post({
    url: '/api/user/phone/login',
    data: params
  })
}
// 实名认证
export const realAuth = (params: any) => {
  return request.post({
    url: '/api/user/realAuth',
    data: params
  })
}
// 授权接口
export const authorization = (params: any) => {
  return request.post({
    url: '/api/user/authorization',
    data: params
  })
}
// token获取用户信息
export const getUserInfo = () => {
  return request.get({
    url: '/api/user/get/userinfo'
  })
}
// 获取默认就诊人信息
export const getDefault = (params: any) => {
  return request.get({
    url: '/api/user/get/default/' + params
  })
}
